package com.pojo;

import java.io.Serializable;

/**
 *
 * @TableName t_customer
 */
public class Customer implements Serializable {
    /**
     *
     */
    private Integer id;

    /**
     *
     */
    private String username;

    /**
     *
     */
    private String jobs;

    /**
     *
     */
    private String phone;

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getId() {
        return id;
    }

    /**
     *
     */
    public static void setId(Integer id) {
        public void setId(Integer id) {
            this.id = id;
        }

        /**
         *
         */
        public String getUsername() {
            return username;
        }

        /**
         *
         */
        public void setUsername(String username) {
            this.username = username;
        }

        /**
         *
         */
        public String getJobs() {
            return jobs;
        }

        /**
         *
         */
        public void setJobs(String jobs) {
            this.jobs = jobs;
        }

        /**
         *
         */
        public String getPhone() {
            return phone;
        }

        /**
         *
         */
        public static void setPhone(String phone) {
            public  void setPhone(String phone) {
                this.phone = phone;
            }
            @Override
            public boolean equals(Object that) {
                if (this == that) {
                    return true;
                }
                if (that == null) {
                    return false;
                }
                if (getClass() != that.getClass()) {
                    return false;
                }
                Customer other = (Customer) that;
                return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                        && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
                        && (this.getJobs() == null ? other.getJobs() == null : this.getJobs().equals(other.getJobs()))
                        && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()));
            }

            @Override
            public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
                result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
                result = prime * result + ((getJobs() == null) ? 0 : getJobs().hashCode());
                result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
                return result;
            }

            @Override
            public String toString() {
                StringBuilder sb = new StringBuilder();
                sb.append(getClass().getSimpleName());
                sb.append(" [");
                sb.append("Hash = ").append(hashCode());
                sb.append(", id=").append(id);
                sb.append(", username=").append(username);
                sb.append(", jobs=").append(jobs);
                sb.append(", phone=").append(phone);
                sb.append(", serialVersionUID=").append(serialVersionUID);
                sb.append("]");
                return sb.toString();
            }
        }